package com.qk.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.opetate_log.OperateLogDTO;
import com.qk.entity.OperateLog;
import com.qk.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhangchuang
 * @Date: 2025/10/17 20:38
 * @Description: 日志控制器
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {

    @Autowired
    private OperateLogService operateLogService;

    @GetMapping
    public Result getLogByPage(OperateLogDTO dto) {
         PageResult<OperateLog> list = operateLogService.getLogByPage(dto);
         return Result.success(list);
    }

}
